cmake_minimum_required(VERSION 3.22)
project(gazelle_io_uring C)

set(CMAKE_C_STANDARD 11)

set(SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src" CACHE INTERNAL "Source Dir")
set(CMAKE_REQUIRED_INCLUDES "/usr/local/include /usr/include")

find_package(PkgConfig REQUIRED)
pkg_check_modules(dpdk REQUIRED IMPORTED_TARGET libdpdk)

message("spdk: ${dpdk_INCLUDE_DIRS} ${dpdk_LIBRARY_DIRS}")

add_subdirectory(src/lwip)
add_subdirectory(src/common)
add_subdirectory(src/lstack)

add_executable(gazelle_io_uring main.c)
target_link_libraries(gazelle_io_uring lstack)
